fixed gl render bug and added Texture, GLTexture, and ImageTexture