added percentage and image index for "each" function call

I needed this to show the preloader progress, also people are asking for this sometimes.

Also guys — http://www.lotterypost.com/js-compress.aspx — Microsoft minifier compresses the code just a little bit better :)

Cheers.