set PicOutputFlag correctly