updated panoviewer.py