How are the images downloaded on when you scroll?
I think that you have to use javascript; when moving the viewport of the webpage, you can calculate when a picture comes into view. At that time you can swap the path of the placeholder image to the correct image.
Here's a page with some explanations: they use this jQuery plugin