memory leak fixed when updating display
optional dynamic pruning of matches in stitching