added controls for changing the stitching algorithm at run time