fixed masonry bug by triggering constructor only when imagesLoaded