Integral Image

Integral Image PR on separate branch.
In response to #949