Relax image comparison tests using mean pixel distance metrics

The new metric helps tolerating small image offsets, as is the case
for SVG rendering differences between Mapnik 2.1 and 2.2.
Closes #88