fix path to png
support both Mapnik 2.1 and Mapnik 2.2