Computes image sums.