Added cubic interpolation for key-frame animations