Create a complete SEO optimization implementation for our website/webapp that includes:
- metadata setup for all page types with appropriate title tags, meta descriptions, and header hierarchy;
- Open Graph image generation infrastructure with dynamic image creation for social sharing;
- a dynamic XML sitemap that updates automatically as content changes;
- a properly configured robots.txt file that guides search engine crawlers appropriately;
- structured data markup using JSON-LD schema for rich snippets and enhanced search results;
- canonical URL implementation across all pages to prevent duplicate content issues;