This commit corrects two small errors that causes the improper
results reported in #312.
- A copy paste typo (most likely) which sets the Dy component
of the image rectangle to Dx.
- The tmp array in fastBoxSampling was not properly
reset because the last argument in memset should be
the number of bytes to fill in and not the number of elements.