Text this: Noise level estimation for digital images using local statistics and its applications to noise removal