use rmagick if present because it has a much better resize algorithm for images