store sprite.value again, use it properly in setSpriteSize