added snapshotQuality setting that determins the compression of snapshots (default 100, for best quality);