Added 'setDimensions' to NineSlice.