Added function to merge two images

Image to merge will be on foreground.