Changed custom figure creation method. The "CTRL" key mussed be pressed
in order to draw the figure. CTRL+M1 draws lines, CTRL+M3 closes the
figure.