Added clone on smooth to avoid changing the original data
Added dynamic line
Lines and areas are rewritten on update