what is the expected behaviour here? are `width` and `height` maximums in both directions? that should probably be documented.