refractor code and add method to get contact image uri