A general framework for nonlinear regularized Krylov-based image restoration