support compare for ImageMagick

fix tests that fail on Linux