added a auto realign fuction that rewarps the panorama