Optimize sprite.texture access

We already have a variable referencing the Sprite texture in the render method, so let's avoid calling `sprite.texture` unnecessarily.