When uncompressing, we need to allocate some memory for the uncompressed data. Currently this is done as: https://github.com/fnands/mimage/blob/3805a6ab6e00f47f2a1533e888d172ed20b8e19e/mimage/utils/compression.mojo#L43 This is dumb. It should be possible to calculate the size needed from the image metadata.