Yeah, there should be the offset option under filters in Photoshop if I'm not mistaken that can do exactly what you want.