Fix violations check in ImageUploadListener