image-stitching algorithm using RANSAC