Added style support to line drawing
Cleanup and warning