preparing for s3 image uploading