Simple PPM image reading and writing.