bilateral filter implemented