updated the image uploader