working out background image for pages