code to upload image to aws s3