Optimize header and footer graphics