The other way to do this is (I admit) a bit of a cheat, but it works. Have a look at some of the thousands of PaintShop Pro frames available for free download on the Web right now. You might be able to find something to suit there.
Why reinvent the wheel??

Scots