Stitching images for the creation of panoramas