added attibutes of photo in users controller