Configure Masonry and add imagesLoaded library.