Updated the TextureUtil class. Probably finished unless something unexpected pops up.