updated SnapshotDialog.take_snapshot()