blend: combine two images this one takes the inputs and combines them to the output image. the mode of operation is controlled by the parameters mode and opacity. TODO: implement more blend modes and document here.