Resizing images and uploading to S3 using NodeJS and GraphicsMagick