Refactored class for rendering text.