I am working on image gallery. I am loading images in this gallery.

Is there any way to use these loaded images as thumbnails also without loading them again.If yes then how?

Thanks in advance.