Images do not repeat until all have been seen. Using a better method than the last commit (no while looping)