rewrite animaiton, add spline interpolation, add resource dispose, some bug fix