Global Topology Based Image Stitching Using Hierarchical Triangulation