[Olena-patches] milena r3989: Move 3D pnm image loading routines