waits until images are loaded before calling masonry