Don't try to initially queue all workers when there are not enough images to go around, and reuse a variable