Limit snapshotted files

Please review carefully.

I have tested this manually.
Maybe we should also have .wav ?