How to import an image as an initial condition in Fenics?

Hi all,
I am very new to Fenics and trying (on dolfinx) to run the but with a different initial condition. I have an image of the initial condition which I want to import to fenics and convert to FunctionSpace - but I’m struggling with this. I noticed a similar thread on this but, unfortunately that didn’t work for me.

NB. My platform is MAC-OS and I used conda to install Fenics.

Any help is highly appreciated.