I would use module data.
You can copy the CSV Base64
encoded string from the image field and use it directly in an XML file, like this:
<?xml version='1.0' encoding='UTF-8'?>
<odoo>
<record model="res.partner" id="1">
<field name="name">Odoo</field>
<field name="image_1920">iVBORw0KGgoAAAANSUhEUgAAAJYAAACWCAMAAAAL34HQAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAMAUExURQAAAIdae4dcfYhae4lbfIldf4pefYpggIxhgo1igI9lhI9nhJBnhZJph5Vui5dwjJhwjZlxj5t1kZp2kJt3kZx1kp13k6F+maOAmaOCm6SCm6SCnKeIn6mHn62Npa2PpK6Ppa+Rp7KWq7OWrLWarbearrecr7qhs72jt76kt7+nub+ousCou8Cqu8GqvAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHtU8wYAAAEAdFJOU////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////wBT9wclAAAACXBIWXMAAA7DAAAOwwHHb6hkAAAAGHRFWHRTb2Z0d2FyZQBwYWludC5uZXQgNC4xLjb9TgnoAAAFMElEQVR4Xs2c6ULqMBCFe0HcUNwBtSooiPv7v503bU+lLZnMpE3b+X4VnJwcS5s9iX6bs1o+zKeT8Wg0nkznD8sVvm5CI1ubeDL8Z2U4iTcIqkVtW+tzOHBwvkawN7VsvV0hXwFXb0jkRQ1bU2QoZoqEHvjaigfIy4tBjORS/GydIJsanEBChoetn2PkUJPjHwgJENt6P4J6A47eIcYitXUA5YYcQI5DZusCqgG4gKQbia0lFAOxhKwLga1DyAXjEMIOWFv30ArKPcRJOFsNSioXXCnmtvVFNBCaM/xCFnactm6h0Qq3yMSKy9YpBFriFNnYcNgK/gZWcbyRtK0RErfICFntQtqq1YDxZYDMdiBsfSNd63wjwwp2W525onzZbSFJJyDLMlZbnTxXOdbny2arg3ewiO19tNhqvbyqYim/dm21XLbb2C3vd2y1Wg9S7NSPVVufCOyYT2SfU7XVWkvGzRDZ51Rs1Wj1DS4fP5A65ePxskYBU2kXlm3dIUjMDTFctLlBgJg7pMwo20KIkHOkIhCMNBVBqoySLZ8Sa+8ZiRw87yFYQqn0Ktry6A+OXpGG4dWjxij2H4u28GcBL0gh4AVJBCBFQsGWuEd/jQRCrpGMpTAOULCFP3LsI9yDfSTlQLhha0s4JnOGcC8mSMywHc/5s/WOPzE8IdyTJyRn+Bv/+rMlG1XzGN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VORK5CYII=</field>
</record>
</odoo>
This imports a Contact like this: