Regularization and renormalization of gauge fields