Canonical Transformations and Renormalization Group Invariance in the presence of Non-trivial Backgrounds