Added width and height as a model attribute
Implemented clear function of the view

Now the clear function is implemented inside the view and not as a
utility function. This way we can use to handle events and is a more
logical place for it to be
rewrite for clearness