Ps. 17:15

David contrasts himself to the wicked previously described. David has divine assurance of the imputed righteousness of Christ. After death, the image of God will be fully restored to David but not to the wicked who lack any righteousness being spiritually dead and in bondage to sin.

Gen. 9:6

God made man in His image. Although knowledge of God, righteousness, and truth have been lost, unregenerate man remains a rational creature with an immortal soul. The law restrains his murderous impulses.