set src property javascript in image to an endpoint code example
Example: how to edit image tags in javascript
<a href='#' onclick='edit()'><img src="../template/edit.png" id="edit-save"/></a>
<a href='#' onclick='edit()'><img src="../template/edit.png" id="edit-save"/></a>