Refactored for infinite scroll and lightbox scrapbooks