For newer version of .net (as if December 2024), you need to add the nuget package System.Drawing.Common
System.Drawing.Common