add the table base from the reference image to the input image s table top