Got popularity to work. If no images have been viewed yet it just grabs the first five images.