Add the index for scale calculation
Add the index for scale calculation

This lets events query the DOM for the index of a particular image.

scimusmn/sd-scrapbook,scimusmn/sd-scrapbook,scimusmn/sd-scrapbook