Well you can either create you own custom border bbcode say like [IMGBRD]blabla[/IMGBRD] then create you own HTML for that.
Or you could make a new custom BBCode which has something like [BORDER][IMG]BLA[/IMG][/BORDER] then your replacement would be:
Code:
<span class="imgbord">{param}</span>
Then you can go to you Main CSS (in your style manager) and create some CSS for it
E.g.:
Code:
.imgbord img {border:1px solid #000000;}
(The second option is a tad more complex but it may be more flexible.)