add median refine panorama