Adaptive images script in header