Perhaps you can write your simple program to save the data to a file as a bitmap - and then use some other application to convert from bitmap to jpeg (e.g. irfanview - which is freeware).

another freeware graphics rendering program is POVRay (www.povray.org) This 3-D renderer may not do what you want, but it might also be worth a look.

Another couple of options :-)

Cheers,

DK