pub fn cover_size(size: ImageSize, bounds: ImageSize) -> ImageSize
Scales a size so it fully covers bounds, preserving aspect ratio.