Correctly set output path for stitching process