nit: use `contact.photo` instead of `contact['photo']`