Optimize background image sizes.