Cleaned up panorama control.