basic draw primitives: rectangle, line, ellipse