Ensure that ImageRetriever sorts keyrefs before downloading, so that
numbers on images can be reliably regenerated by cycling through file
sequence.