Layout masonry after images have loaded