Scale down images client-side before upload.