Changed populateimages3 to 5.times