Refactored ImageService to exclude generated thumbnail files from counting the images.