Create a new GreenfootImage that is the size of the world, but a little bit higher than the world height, and fill it with you main background color. Then draw the current background image onto the new image at (0, n) and set this image as the new background image.