The border-image properties may be what you want.
Will the pictures all be the same aspect ratio? If not it may be a little trickier, but it is possible to make image borders responsive and vary in aspect if the border images are carefully prepared.
See this older topic about image borders:-
And also this example Codepen showing a responsive image border example:-