[panview] fix UnboundLocalError when reading file from standard input
[panview] fix -f/--format not being honored when reading from standard input