Clean up resources

Updated: October 28, 2024

After you finish using the image library, clean up by freeing any memory that was allocated by the image library in the img_t structure. For example: