title: Cannot see the Image type in System.Drawing namespace in .NET
body: <p>I'm trying to write a program that sorts images in specific folder by ther dimensions and moves little images to another folder via simple .NET console application. I decided to use System.Drawing.Image class to get the image dimentions from an image file. But I face following error:</p>
  
  <blockquote>
    <p>The type or namespace name 'Image' could not be found (are you missing
    a using directive or an assembly referrence?)</p>
  </blockquote>
  
  <p>What exactly did I do wrong and why it doesn't see this class?
  Here are the complete code of my program:</p>
  
  <pre><code>using System;
  using System.Collections.Generic;
  using System.Linq;
  using System.Text;
  using System.Threading.Tasks;
  using System.IO;
  using System.Drawing;
  
  namespace ImageSort
  {
      class Program
      {
          static void Main(string[] args)
          {
              string targetPath = @"d:\SmallImages";
              string[] files = Directory.GetFiles(@"d:\Images");
              foreach (string path in files)
              {
                  if (File.Exists(path))
                  {
                      Image newImage = Image.FromFile(path);
                      var Width = (int)(newImage.Width);
                      var Height = (int)(newImage.Height);
                      if (Width * Height &lt; 660000) {
                          System.IO.File.Move(path, targetPath);
                      }
                  }
              }
          }
      }
  }
  </code></pre>