pub fn get_bgra_tiff_writer( output: PathBuf, dimensions: (u32, u32), ) -> impl Fn(&[u8]) -> Result<(), GenericError>