use css instead.
create a class in your stylesheet file (.css)
something like...
.button {
border:1px solid #hexadecimalcolor;
padding:0px;
}
then wrap your image in a span class wherever it will appear on the page.
< span class = button > [img code for button] < /span>
hope that helps.