fixed overflow stroke width condition of the line outline.

http://osc.matsukei.net/issues/390 fixes #390
added grid in the background.

http://osc.matsukei.net/issues/351 fixes #351