Shortcut to add selected image to a new task

I have an old shortcut that worked with OF3 on iPhone. Starting with a photo selected in the Photos app, tap the share button, choose the shortcut, and (iirc) a new task was created in OF with the image as an attachment. I want to recreate this shortcut for OF4, but the things I’ve tried haven’t worked.