Fix scale bug on draw line path function

Still need to clean up code though