how to make automate flow for every grid data with image convert to each sharepoint list.

I have a Form that have grid data, each grid there is text and image. how to make automate flow to convert each grid to each sharepoint list.

i already try Upload Attachments to a SharePoint List Item tutorial. But the result each sharepoint list has all picture attachment. what i need is, Grid A has only A image attchement, Grid B has only B image attachment, not Grid A has all image and Grid B has all image as attachment