Code cleanup. Implemented example previews for Rectangle, Ellipse and Line tools.