Denoising function changed to bilateral filter