Fix image output names.

The take_uncompressed_snapshot() and take_compressed_snapshot() were writing to the same file.