Combine input and output images in test framework using RoI.