refinements to sprite scaling