diff --git a/modules/io/pymod/export_map_io.cc b/modules/io/pymod/export_map_io.cc
index 44c668af269cb63ca0b177bc60ae981ed61c68fe..6f30e29616033f81e30b91c2cc4dbdb147895118 100644
--- a/modules/io/pymod/export_map_io.cc
+++ b/modules/io/pymod/export_map_io.cc
@@ -44,12 +44,12 @@ void  save_image2(const img::ImageHandle& image,const boost::filesystem::path& l
   SaveImage(image,loc,formatstruct);
 }
 
-img::ImageHandle  load_image1(const boost::filesystem::path& loc)
+img::ImageHandle  load_image1(const String& loc)
 {
   return LoadImage(loc);
 }
 
-img::ImageHandle  load_image2(const boost::filesystem::path& loc, const ImageFormatBase& formatstruct)
+img::ImageHandle  load_image2(const String& loc, const ImageFormatBase& formatstruct)
 {
   return LoadImage(loc,formatstruct);
 }