Resize images to fit within 2048x2048 before uploading