A gauge covariant approximation to quantum electrodynamics