added code to stitch images almost done