Denoising using new thresholding method