I've been using Westwind Webstore for several years and they store the images for each item in a folder on the website. The item table contains a field for the name of each image. You might find the Webstore software will give you a headstart since it comes with source code and can be fully customised. It is an excellent product (www.west-wind.com)