Resize to fix images to upload maximun width of 1024px and show on iOS