set image sizes based on page speed recommendation