How to combine three images and create single image in rails

Hi can any buddy help me to find the way to create single image with combination of three images.

you can use Image Magick or other Image processing software

Example

Yes I am using that , and found the command "composite arvind.png download.png arvind4.png " but I need to know is there any process in which I can convert three images to one in a single time