By "good" spark, do you mean that it is a fairly bright, blue, wide spark ?
If it is dim and yellow it is weak. The headlight dimming indicates that something is
drawing appreciable current from the battery, which is often the case during starting.
But, something may be drawing too much.... Does the starter spin the engine with
some authority, or is it going rrrr...rrrrr...rrrr ?