fix canvas draw line px width bug and draw grid in background