catch error when imagemagick is not installed