@Override
    public void setPatch(NinePatch patch) {
        patches.clear();
        patches.add(patch);
        super.setPatch(patch);
    }
@param patches the frames to be drawn
@param frameDuration the delay between frames in seconds.
core/src/com/ray3k/skincomposer/AnimatedNinePatchDrawable.java