Personally, I prefer to store the images in a folder and simply store the image name and description in the database. Makes life a bit easier.
example using database (with pagination)
http://nstoia.com/effie/gallery/
example using flatfile (sans pagination)
http://nstoia.com/testpg01/index.php
Both use a popup window to display the full size image
Lite...