refactor, optimize Scale9Sprite