This is a simple file edit to check to see if the image file in the database actually exists and if not will display a default image.
I like to pre-populate the database with image filenames and then upload the images as I can, so this will display an "image coming soon" type image with no popup or "Click to enlarge" text until the real image is uploaded.