still porting over relevant bits of renderer2d to pixi