Brought over ppm_image and pixel structs, and ppm writing capability from ppmvalue.