How do I generate pictures with edify

I was trying to find the python code snippet to generate pictures with Edify but could not find one. Can you please let me know from where I can access the python code snippet. Also after picture generation how do I modify a specify segment of the picture? Is there any code snippet to do so?