added functionality to create mock images and determine if they have the correct extension via the traitConcrete class and validatorTrait class with tests on TraitConcrete class