Example source code for graphie-to-png, the sofware used to generate graphs at the Khan Academy