I write a food blog and had to insert my cropped and resized images into a frame and then publish it to a jpg from photoshop for every single post.
Try this CSS class instead. If you want to see what it looks like, check out the posts here: http://food.sidkhullar.com.
This one of course has been optimised for the border I'm using, however, a little tweaking and your borders too will fit in quite easily.
Just use 'class="imgborder"' in the table cell where you post your picture.
Hope this helps.