implemented upload of image files