fopen and fclose added to ppm_write_to_file and ppm_read_from_file