Added imagemagick support