fixed imagemagick issue