Fix median filter window size

Fixes #4