Support endless scrolling

Currently it'll only get the first 10 images if endless scrolling is enabled. We can fix that by binding document.onscroll ^_^