Validation of imageType