i'm new to IM and now that i can mount two or more images together on a new, resulting image, which is pretty cool for me

Is it possible to place two or three images onto a "background image" without knowing it's size, so that the resulting image has the same dimension as the background image? And how to tell IM which image is the background image?