Add methods for paint line, circle and rectangle.