Construction and refinement of panoramic mosaics with global and local alignment | Synapse