add HTKImageUtils and nil check for categories