Added comment for getSumOfPixels