Added sanity check to debug ImageMagick version