Pixi.js v.2 support

This solves the problem when you use the newest version of PIXI.js
library, trying to create a renderer.