Added ability to load textures.