removed consistency check on imageIn being file or directory (not needed)