MATLAB code for image stitching