A flexible updating framework for preconditioners in PDE-based image restoration algorithms