preparation for uploading pictures to s3