Fixed bugs in OpenGL Rendering and Texture loading