update to merge two images