Optimization: do not recompute the list of images.