Tiling background for space shooter

hey there.
im making a space top down scrolling shooter
trying to make a background created of one 800x800 jpg file which is duplicated and removed so that it seems space goes on forever
heres an image to help explain

basically the grey area is the place the user sees.
top left boxes have outgrown their use and need to be removed
bottom right need to be created because the user is going there.
(each square is a copy of jpg image)

Help please :wink: