Don't use image.countImportedImageFiles()