How do you expect to keep the job if you get it using someone elses code?
Besides that what you want to do is fairly easy, depending on how complicated you want to get.
If all of your images are going to be the same size you just need to get the images for the frame edges put into the system, either database or file, and have some kind of naming structure. Then when the user selects to see the image inside a particular frame you use this naming structure to put the frame images into the html that shows the image, the same way your image gets put into the html.
So you'd have some files named something like:
wood_north.img
wood_east.img
wood_west.img
wood_south.img
wood_ne_corner.img
wood_nw_corner.img
wood_se_corner.img
wood_sw_corner.img
And when the user selects the wood frame you'd put into the html these images in the proper locations to build the look you want.