Checking if images are loaded