rewrote shrinkFromSource and flipInvertFromSource

Wrote both to iterate off of destination and calculate on source.