Migrating people in YAML to UI

For a long time I have managed people via the YAML configuration such that a person has a id, user_id, etc property.

However from what I could see you cannot attach an image to this, which seems useful for the newer UI logic and cards.

Is there a way to migrate from this to other way so that an image can be assigned?

I’ve tried removing the person via code and manually creating which mostly works but it lacks the person association with the user?