corrected integer test in read_ppm