Functions to get and set the sprite texture