The Mathematical Image Synthesis Toolkit