Resize Images to be uploaded