In the e-mail window please make sure you have clicked on the "Save" button, after that you can click on the image icon located in the middle of the window and select the image you want to add.
Hi, Paul.
Sounds like you're talking about REST API. And that your are overwriting data with older values if B managed to read record before A finished to update it. Classic conflict resolution ...