Bug fixing and refactoring. Mouse now correctly follows the figures. User can now select figure from the toolbox and draw it in the canvas.