Added a final step to stitch the images together using a mask.