Convert base 64 image to media object

Surely, that is my plan of attack. However, I cannot import the base64 package into my Anvil. Maybe because I’m on the free plan?

*Edit: actually I might have tried to import the base64 package on the client-side which is more limited. I will try to do that on the server-side to see if it works.