Loads of Eastern European countries have the passport photo taken by a passport official; the Latvian passports in our family have the best photos, and it nicely bypasses the silly 'provide evidence of your ability to form social bonds in the local community' requirement of UK-derived applications which want you to get a declaration of the true-and-accurate-likeliness of the photo signed on the back.
Countersignatures are mainly intended to confirm a person's name/identity. They certify the photo too, but an adult who hasn't had a passport before needs to attend an interview where the photo will be checked and applicants who do have a previous passport will have the new photo checked against the record.
I do think the countersignature system should be revisited, though.