imagestream: fix bug that caused image load events to be accidentally dispatched to the callbacks of previous images.