title: attribute error : Image object has no attribute T
body: <p>I am doing 8by8 block dct conversion through python.
  There's error like the following error message:</p>
  
  <pre><code>AttributeError: 'Image' object has no attribute 'T'
  </code></pre>
  
  <p>here are some part of my code:</p>
  
  <pre><code>from scipy.fftpack import dct
  from PIL import Image
  import glob
  
  def dct_2(img):
      #Get 2D Cosine Transform of Image
  
      return dct(dct(img.T, norm='ortho').T, norm='ortho')
  
  images = image_open(path)
  
  for i in range(0, len(images)): 
      box3 = (1,1,256,256)
      a = images[i].crop(box3)
      width , height = a.size  
  
      (y,cb,cr) = a.split()  
  
      for q in range(1, height-32 , 32):  
          for w in range(1 , width-32 ,32):
              box1 =(q,w,q+63,w+63)
              block = y.crop(box1)
  
              for j in range(1,64,8):
                  for n in range(1,64,8):
                      box2 = (j,n,j+7,n+7)
                      temp = block.crop(box2)
  
                      dct_temp = dct_2(temp)
  </code></pre>