Compress image on upload.