Make median filter radius configurable