paint functions like drawing line,rectangle ,ellipse etc:-