[Core] Fixed Sprite NinePatch bugs;
Fixes #1;