writing the info on-the-fly.  also, including thumbnails.