Friend <---Father---> Son / Father of man in photo ---> man in photo / Grandson of friend's father
Your friend is a direct relative of the first father, the man in the photo is a grandson of that first father.
Therefore, your friend is the uncle of that man, and that man is his nephew.