convert enum ImageType to enum class