code: def get_image_size(self, image):
          
          if image['size'] is None:
              args = settings.THUMBNAIL_VIPSHEADER.split(' ')
              args.append(image['source'])
              p = subprocess.Popen(args, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
              p.wait()
              m = size_re.match(str(p.stdout.read()))
              image['size'] = int(m.group('x')), int(m.group('y'))
          return image['size']
docs: Returns the image width and height as a tuple