fixed image uploading on iOS