In Britain you just upload a digital photo so it would work here.
That only confirms the person sitting at the computer is the person in the uploaded photo though.
When you first get a passport you have to have your identity confirmed by a professional person with community standing, teacher, policeman, doctor, someone like that.
They do background checks, it seems quite rigorous.
Once you have a passport/driving license they allow you to reuse a recently verified picture in your application to get the other document.