Clean up resources

Updated: April 19, 2023

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: