The app is using the first available thumbnail even if it is not a profile photo.
So, if there IS a primary photo it correctly uses it. But no primary photo exists, but other images do, it uses one of them. It should not do this.
Only assign a thumbnail tagged as the primary photo.