Fixed image validation in UploadControl