Fixed an issue with imagemagick