Project a curve on a image and save it

Hi, could anyone tell me how could I project curves onto an image and then save it? I use rhino 8. I would like to do it using python, but if their is a plug-in it would be ok too.

I guess one way would be to import the image as a Picture object, do all your curve drawing, then zoom the way you want and use CaptureViewportToFile and save as a JPG or PNG.