Fixed bug that caused filtered frames to be ignored and instead only
saved original frames to file.