Update slimage.js

Fixed bugs, prevented smaller images from being requested after larger ones had already loaded.