animation to string jpeg