Fixed bugs. Almost finishing the panorama correctly.