generate and store jpeg image versions on s3