Generation of the animation frames with libtsm