make_images.rb: try to support ruby <1.9 and >=1.9