Use all images for selection count on main window.

Previously, only the images on disk were counted, which can have severe
performance penalties on NFS mounted drives.

CCBUG: 340127