support compare for ImageMagick

fix tests that fail on Linux
more comments
Merge pull request #238 from longlho/master

support compare for ImageMagick, #230