cropping image and join images using Rmagick