fix off-by-one error in loadImage.js

Sometimes loadImages goes one over the number of available images, throws an exception, and dies.

Statistically unlikely to happen given that the plugin ships with 100-1000+ images for each persona; I noticed this issue after I replaced one of those image sets with a smaller one of my own and the plugin appeared to stop working.