pub fn write_string_ppm( canvas: &Canvas<Vector3<u8>>, directory: &Path, file_name: &str, ) -> Result<(), Box<dyn Error>>