updated Texture and Sprite implementations