fixed mini_magick and imagemagick issue