Moving scaleModes enum into class so its behavior matches what's expected from the JS version of PIXI. Fixes #2