Clean up resources

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: