Added simplified version of the PNM parser.