Added copyDimensions function in NineSlice.