Fix memory corruption (caused by i18n)
Change magnitude of downsampling to be 2^downsample.

Extreme downsampling shows there is still a drawing error.