Added ability to upload the selected image to S3