How to make scrolling wrapped background? [slick2d]

         I'm trying to figure out how to make a background that wraps around the screen when it reaches the end of the screen in a side scroller. So every time my character moves to the right the background moves a bit to the left. Once a part of it reaches the end, it wraps around the screen and begins again. Would I just have two images for the background, and once one reaches the end I set it behind the second background?