add debug output for median filtering