moved scaleToTexture to sprite