update data-id on image swap