compress images as uploaded to AWS