implemented line and curve graphical tools