change mode of pnm header(P4->P6)