Save images in SwiftData models with document based apps

Hi! I am creating a document based app and I am wondering how can I save images in my model and integrate them in the document file. "Image" does not conform to "Persistence model" and I am sure that "Data" will be saved in the document file. Any clue on how can I do it? Many thanks.

Save images in SwiftData models with document based apps
 
 
Q