His #1 has two code segments. The first one is from your main cgi, which calls the second segment. That segment prints out two things: the header (image/gif) and the image itself.
Paris Sinclair | 4a75737420416e6f74686572
pariss@efn.org | 205065726c204861636b6572
I wear my Geek Code on my finger.