Add line and triangle drawing functions