Stitches images into panoramas using OpenCV