Fix ppm_write to save RGB888