Since you can just update the image without needing a new src url, you can do the following...
$("a.refresh").on("click", function(e) {
e.stopPropagation();
var $img = $(this).closest("img");
var src = $img[0].src;
src = src.substr(0, src.search("?")) + "?" + new Date().getTime();
$img[0].src = src;
});
That will take the current image src and append a timestamp onto the end of it, causing a reload (rather than just use the same url and possible not load or load from the cache).
Also, you currently have it applying the same ID to all the refresh links. You should apply a unique ID to each of them (just append an incrementing value to each ID).
Finally, I added e.stopPropagation()
so that the outer link does not react to you clicking the refresh link, otherwise the click would just bubble up and you'd end up changing the page.