Upload multiple sizes of an image to AWS S3 all in memory