pub fn write_grayscale_png( image_file: Box<dyn Write>, img: &Array2<f32>) -> Result<(), Box<dyn Error>>