fix picture format
fix picformat
make things more abstract