Fixed a bug when ImageMagick is not installed