Denoising and compression of digital images using wavelets