Asumign you want to do it in ASp.net, do the following steps -
  1. Drag/drop a literal control in aspx page
  2. In Code behind, get all images from DB and build a list of images using

You should be done.