Top CS PhD progams are looking for strong evidence of future potential as an independent researcher. Everything else is secondary. Recommendation letters that speak directly to your research potential, in personal, technical, and credible detail, with direct comparisons with other students they have mentored who have gone on to strong PhD programs, will serve you far better than either a perfect GPA or industry internships or even both. Strong research results are even better.
A better way to way to ask this question is...
Which is more important for finding a strong, supportive mentor and a fruitful topic for undergraduate research: high GPA or industry internships?
But even this is missing the mark. It's not your GPA that you want to maximize, but rather (1) your mastery of the material, and (2) your interactions with faculty. A recommendation letter that says nothing but "My class was hard; Oshan got an A." is utterly useless. (We call them DWIC letters, for "Did Well In Class".)
Similarly, industry interships are only useful if they provide you with opportunities for intellectual creativity, or leverage for getting into a specific research project that you care about. In particular, unless you actually care enough about image processing to want to do research on it, an internship doing image processing is just spinning your wheels.
The most important advice I can give is to talk to your potential research mentors as soon as possible. Ask them what they look for in potential undergraduate researchers. (They might say "a high GPA" or "industry internships", and then you have your answer.) Ask them about their track record in placing students in top PhD programs. Ask them what they would expect you to justify a strong recommendation letter. Ask them what sort of research they do, and how to get involved. If they don't have time to work with you ask for pointers to interesting papers to read, problems to think about, projects to work on on your own. Do not wait for permission; just start knocking on doors. Today.