using rmagick to gete image dimensions