Added additional support for texture scaling, still not working properly, but better