TV show Lost Question---Ab Aeterno

I thought the idea was that the Man in Black/Smoke Monster could imitate someone so long as they were on the island. That’s why he could be Jack’s father and why it was necessary to bring Locke’s body back.

So in this episode, how is he able to take the form of Richard/Ricardus’ wife? She died in Spain and is not on the island.