first version of the animation export function completed