got it correctly retrieveing image data from the images table when you start it up