add ppm.c

dump image data in PPM format, a simple image file format.