Refactored highPassFilter with new parameters