img optimization and async added to analytics