Add imagesloaded to make sure reloading happens only after images are there.