Generate figure images when running examples, use them in docs