Fixed a bug where 'method' kwarg in resize() is not properly passed into calculate_dimensions.