added event handling code for translate, rotate, and scale; added rendering for lines and triangles