created class DrawingHandler to handle paths and points