fully functional img functions
incomplete stitching - (1) bug