Use sample size to acquire Bitmaps in Downsampler.

Fixes #224