This seems the same function than the one defined in the `OperatingSystemToImage`. Can we have only one and reuse it?