Added validator for image uploads.