Let me get this straight:
You want a program that will take a picture, and output a new picture with frames?
If so, it should be fairly easy, I think. Just make a bitmap with a little space on each side of the original, and then use the Windows functions to draw on that little space. A normal frame should only take about 3 lines per space, at most.