Jinns can change shapes. I havent heard of them taking shape of a deceased person. because the spirit (rooh) of a deceased person already exists and is alive.
There is also something known as “hum-zaat or hum-zaad”. an identical of every person. any body knows about this?