
The question is:
From the frame preview above, can i repeat the pattern (or at least the color) so that it frames the image completely with no white space? For now, I'm creating a full frame image like this with photoshop using the frame preview above which I repeat all over the frame.

And the result will be something like this, but I don't want the white space at all.

The steps to frame the image are as follow:
1. First, the user uploads an image
2. After that, when they click on the frame preview above, the image will be copy and resampled using imagecopyresampled function to the full frame image. Of course, if the image is bigger than the frame, the program will resize the image while keeping its proportion, and if it is smaller, it doesn't get stretched, but positioned in the center.
The problem is, I have to frame the image without any white spaces. I know I can do it with colors, and I've tried it ve(framing an image with colors), but how do I frame an image with the frame preview image above? Since if I use full frame image, it will be in a fixed resolution, eg 440x320 pixel, and the uploaded image will have to adjust with the full frame image, while what I desire is the other way, the frame will have to adjust with the uploaded image.
Thanks.