added ImageMagick support