While a process, it is possible to make dynamic images that change based on the different variables displayed in a specific student's problem in TeX and (C & JS). The software used to create these moving items is called PS tricks. We strongly encourage you to build off of a template to get a figure if you want to go this route (alternatively, just upload a static image file <250kb).
This page is a tip of the iceberg primer for PS tricks, with links on where to find more information.
Look for the following signposts in the PS tricks template library:
...
-Figure Diagram (#196735)
-Timelines (#193964)
-Number line variations (#210359)
...
-Horizontal Table (#182612)
-Matrices (#85128)
-Graphs (#214062)
-Venn Diagram (#80752)
-Tree Diagram, 2 variable (#180754)
...
-Tree Diagram, 3 variable (#180573)