Perhaps you could try using circles instead of lines? Maybe you could cobble up something that said “for the first few pixels, use lines, for the others, use circles”.
I suppose you could also use thicker lines.
Amendment, the issue is not resolved, the method above is very resource intensive by creating hundreds of circles, how can I restrict the creation of circles so that they are not created on top of each other?