combine function

Pixelwise operations on a pair of images