Gauge invariant structures and confinement