Lazy render support

Now animations return functions, which render strings based on frame number