getTileSprite function.