Add helper for generating background images based on layout.