Nonperturbative confinement in quantum chromodynamics: III. Improved gluon propagator