tweaks to the imagemagick diffing to work on both linux and windows