Layout masonry when images loaded