I made some progress but still crashing with the tool handling, do the coordinates change depending on the tool? like freehand uses delta coordinates for the strokes as they are in order whereas the ellipse/rectangle uses 5 points and absolute coordinates?