An improved NAS-RIF algorithm for image restoration