Added file upload functionality for the image type