fn write_image(path: &PathBuf, image: &[u8]) -> Result<()>
Write the image to the specified path (or stdout if -).
-