Fixed copy/paste error in resizeToMinimum method.

Changed variable names from max_ to min_.
Reversed whether height or width was used to match the reversal
of which method is called when compared to resizeToMaximum.