added Texture constructor to support TextureAtlas