Use sample size to acquire Bitmaps in Downsampler.

Fixes #224
Avoid expanding buffer to fit entire image.

Fixes #225.