Make duplicate frame filtering configurable