Added some useful line drawing functions