Corrected image upload validation.