Modification function ppm_read_from_file to create file itself

ppm_read_from_file can now create the file for the image itself and close it. Change the params of function, takes now name of the file instead of the file itself