optimized the bg jpeg