I think this should move further down and be called instead of the imagesLoaded wrapper.