Small fix to the map image generation