HI, I find this example very useful, it is exactly what I need. Although its 1.5 years later.
However ,as the post stated, there is a bug with FireFox. The bug is still there as of today(1/25/2016) for FireFox(43.0.4). So in FireFox, this example doesn't work, it cannot preview multiple images, only the first image is showing. I have to Google and found a fix for this problem. And it works perfectly.
This is only for FireFox. Chrome and IE always work.