https://github.com/xelmirage/libpano