Added spacing variable to element drawing.