Support of polyline

Hello,

I added the support of polyline, no more need of series of lines.