image gallery loads on scroll, but continues to append broken links