summation by pixels