Added wip TextureUtil class and other small changes.