Use countImportedImageFiles for download. Fixes #12136
Merge pull request #2219 from will-moore/orig_file_download_12136

Original File download 12136