added linecap functionality to draw plugin