Defined IMAGETYPE_UNKNOWN and IMAGETYPE_COUNT to fix issue #1634.