Optimizing the images to 72dpi and the correct dimensions in either .jpg or .gif is a good idea. .png isn't too bad. Avoid .bmp.
Access is denied by this network, so I can't look at the code to comment.
If anyone knows of a website that can offer ColdFusion help that isn't controlled by neurotic, pedantic jerks* (stackoverflow.com), please PM me with a link.
* The neurotic, pedantic jerks are not the owners; just the people who are in control of the "popularity contest".