Fix for imagemagick compare returns 1 when images are dissimiliar

Based on the imagemagick documentation the compare program returns 1 when images are dissimiliar.

http://www.imagemagick.org/script/compare.php
> The compare program returns 2 on error otherwise 0 if the images are similar or 1 if they are dissimilar.