There are various views on what "God's Image" means. If it was true that "God's Image" meant our physical appearance, then yes the ToE would contradict that. But some people believe being made in God's Image is not referring to our actual bodies. That it has to do with the Soul/Intelligence/relationship with God, etc. The ToE could not go against those versions of the Image of God
It is not exactly an "accident".
Misconceptions about evolution
But you have to remember that the theory of evolution does not deal with questions of theology/religion/God, it is neutral on those matters. For those who accept the ToE and also believe in God, clearly we are no accident. While an atheist who accepts the ToE would disregard their being an Intelligence behind the evolutionary process.