Coding the LiveDrawingView class