added textpainter and edgepainter
added textpainter and edgepainter