Using images in Anvil Assets in a python-pptx slide

Appreciate the help… so I tried two things, one of them is your second suggestion. I think I am close to a solution, both of these are generating a well-documented error that alas, I don’t understand. In the cloned app you’ll see that I’m grabbing a .jpg via a file_loader in the client side, then passing that to the server module. In my python-pptx code I have tried passing that or the theme-grabbed jpg. They both generate this error:

<class 'anvil.URLMedia'>
<class 'anvil._serialise.StreamingMedia'>
AttributeError: 'URLMedia' object has no attribute 'seek'
at /home/anvil/.env/lib/python3.10/site-packages/pptx/parts/image.py, line 168
  called from /home/anvil/.env/lib/python3.10/site-packages/pptx/package.py, line 153
  called from /home/anvil/.env/lib/python3.10/site-packages/pptx/package.py, line 36
  called from /home/anvil/.env/lib/python3.10/site-packages/pptx/parts/slide.py, line 39
  called from /home/anvil/.env/lib/python3.10/site-packages/pptx/shapes/shapetree.py, line 351
  called from sm_main, line 64
  called from Form2, line 17

App Clone:Anvil | Login