Set content-type to jpg before writing to S3