fix bug in imagemagick comparison detector