Problem with appending and deleting linked images - clone supplied

EDIT: The data binding issue wasnt what I thought. Its caused a dangling reference. How to handle dangling references to deleted records

Seems you cant do much about it, so I’m thinking I will have to add another column on my images, and instead of deleting, it will change the status of the image to archived, then when I do my server query to get the images, I’ll have to add that extra line in. It seems a long way to go around the problem???