Replace background images by optimized ones