enh: added ValidateInputImage
Merge branch 'validate_input_image'

* validate_input_image:
  enh: added ValidateInputImage