fix imagemagick problem with rmagick