refactored code, view contact photo