Set image sizes to prevent reflows