replacing rmagick with minimagick