implements stitching flag for setting minimum overlap required for merging
adds border weight flag for stitching