use mapnik.Image.compare / node-mapnik@1.4.7