Added updateTexture and misc. changes
Add withTexture