If you would like to add one point on each corner, a simple way to do this would be to wrap your img with a div container, make its' position relative (so that all its' children will be positioned relative to it) and then add four elements where each can be positioned however you like. You may achieve this without javascript:
HTML
<div class="img-wrapper">
<img src="null.png" id="marker" />
<span class="img-corner top-left"></span>
<span class="img-corner top-right"></span>
<span class="img-corner bottom-left"></span>
<span class="img-corner bottom-right"></span>
</div>
CSS
.img-wrapper {
position: relative;
display: inline-block;
}
.img-corner {
position: absolute;
display: block;
width: 6px;
height: 6px;
background: red;
border-radius: 3px;
}
.top-left: {
left: 0;
top: 0;
}
.top-right: {
right: 0;
top: 0;
}
.bottom-left: {
left: 0;
bottom: 0;
}
.bottom-right: {
right: 0;
bottom: 0;
}
You may also change the position of each point to be anywhere you'd like.