Below is a link to a small IDL script I've written to write out a sequence of jpg images. The file contains hints as to how to use it!
The script