refactor relative tolerance to implicit comparison at end of with block
adapt test images (make "fail" image less similar and "ok" image more
similar), adapt tolerance for matplotlib 1.2.x