Topic: Dont load everything trick?!

Anyway that autoviewer (whether hacked or not) can load only the current highlighted image and image 1 and 2 to the left and image 1 and 2 to the right of that highlighted image?

I dont think it would be to hard to and it would allow you to have like 1000 images in a gallery since it would load in the ram at most like 5-6 images. Since some of them being loaded are off the screen from the left and right side, the user wouldnt see a difference (except that his cpu wouldnt explode!!)

any ideas or examples?