Original photo Inteligent photo expand     (requires Photoshop CS5 and higher) Original photo size Expand photo by mirroring Original photo size Inteligent photo expand

You can apply effect several times on the same photo, and you will get repeated patterns.

Original photo size 3x Expand photo by mirroring
Original photo size 3x Expand photo by mirroring