@silverpill the old way is just an Image with summary and name: https://marius.federated.id/uploads/basking-snick
Which then can be set as an attachment to a note.
The new way is slightly more complicated and I upload multiple versions that get set as URL values on an original Image:
https://marius.federated.id/uploads/bread-top-july
This one can also be attached to a note or whatever.
(if you view them in browser you get a raw image for the first, and an html documen for the second) With json+ld accept header you get the raw objects.