adding 5 sec sleep to ensure that image collection is all loaded.