loopImages() at end of script