Added event listener on mouse events.
Changed cursor style on hovers on canvas borders.
Removed some edge validationso and implement the resizing functionality.
Dashed the line around the canvas element and updated the example.