photo proper delete and refactor contacts class