Add text figure with frame

- Add text figure with frame and margin which can be either regular
rectangle or rounded rectangle.
- Fixed minor typos.
- Added interface Rectangler
- Change names of rectangle's dimensions from length and width to width
and height respectively.
- Fixed bug where the rectangles last side is not drawn.