fix pixel format bug - but playback still doesn't
remove useless endl in prints