Refactor textrenderer to 100 line limit