Bit of a rabbithole with the CImage type