Convert CPDF_ImageMap to std::map.