Background Field Method as a Canonical Transformation