Fixed error with ImageMagick