Fixed issue with masonry firing before images were loaded