pub fn fit_within(size: ImageSize, bounds: ImageSize) -> ImageSize
Scales a size to fit completely within bounds, preserving aspect ratio.