Ensure that downsample.pyx preserves image flux