I needed to learn how to use the vtkm::io::ImageWriterPNG class, so I hacked this up and thought I'd share.
vtkm::io::ImageWriterPNG