In Sweden an artist painted a self-portrait, took a photo of it, and used that photo when renewing his driver's license. It was accepted. [0] The transport agency, when told about this afterwards, had no problem with it as it was -- in that small size anyway -- indistinguishable from a normal photo (but they discouraged others from trying the same). [1]
[0] https://www.dn.se/kultur-noje/konst-form/konstnar-har-sjalvp...
[1] https://www.dn.se/kultur-noje/konst-form/transportstyrelsen-...