Can now shrink by rows as well.

I used the fact that shrinking by rows is the same as shrinking the
transpose image by columns.