Infinite scroll alternatives

I am working on a web application which requires me to display thousands of images as stored in the database. I want to implement it in this way: Each time the user scrolls through a certain number of images (say 10) the next set of 10 images is loaded. I know that I can use infinite scroll for that, but is their some other, maybe better, way of approaching this?

I was suggested to ask the question here when I asked it on stackoverflow.