Realized N dimensional joint bilateral filter and added L1/L2 norm support.