refactor array of PhotoResp to PhotoResp