Fix issue when setting image of NinePatch