an implementation of jpeg resize for s3 and sqs user