Added mouseevents, ability to draw rectangles