Instead of rmagick use minimagick.