changed the integral image a bit