Optimization during texture stitching.