Connectedness of the attractor of an iterated function system