Background image optimization