def Draw(im, mode=None):
 try:
  return im.getdraw(mode)
 except AttributeError:
  return ImageDraw(im, mode)

def Draw ( im , mode = None ) : try : return im . getdraw ( mode ) except AttributeError : return ImageDraw ( im , mode )
a simple 2d drawing interface for pil images .