improved linerenderer code design

Signed-off-by: anthonime <schiochetanthoni@gmail.com>