Move the rendering to another class

Signed-off-by: Aleksi Sapon <QcTechs@gmail.com>