removed unnecessary calls to 'eval'
refactor polyline / painter path