Add dependency check for ImageMagick