changed getImage function to get 5 images for each tag