Fixed issue with mapImagegenerator ticket #26