Added function to upload images for resources.

Added code for processing the images after saving the task.