Prevent divide by zero on downsample of same size.  Added unit test.
Issue #154