Count images on STATE_STOP.

Sometimes the 100% progress change is missed, so count the images on `STATE_STOP`, as well.