Add in support for writing snapshots to a gzip file