fix bug with wrong fitting to window of Pixi Canvas