I need to write a program where I can open different images, put them together, en save this as a new file????

Is this possible?
Does anyone have some clues how to?

Eric