Fixed some issues with getting a new texture, and the handling of said textures.