Any trick to add photo to empty contact names?
Try as:


Open Message app and open a particular SMS.
Tap Circular Person Icon at the top.

Tap Create New Contact option which will open a page where you can edit contact information and add a photo to the contact as well.


That's how you will be able to save a contact from message app and add a photo as well.
However, I couldn't understand your purpose/scenario quite clearly, so shed some more light onto your problem so that the community can answer your question accurately.