Refactor pixi renderer into Renderer.js