Exactly this is covered in the following FAQ:
My number of photos differs between Geocaching.com, Top most log images, and Badgegen's The Shutterbug.
That's because they are showing different data. Geocaching.com shows a summary of all photos uploaded to Geocaches, Geocache logs (all types) and Trackables.
Top most log images is based on photos uploaded to Geocache logs, of any type. Not photos uploaded directly to the Geocache (available to the cache owner only), and not photos uploaded to Trackables.
BadgeGen's The Shutterbug is limited to Found logs only (and equivalent). This is based on the actual rule behind the Badge.
Please, try to use FAQ or search before asking a question.