Preparation for supporting PNM/PPM format
Basic support for writing PNM/PPM format