Write ppm header