Adaptive kernel ridge regression for image denoising