Added functionality for OpenGL texture loading. Hopefully it will work.