new implementation of ImageValidator
added asserts for file content