Added drawing of line and rect to the VPainter