fixed image magick issue