Add masonry to image layout