def _square_image(img):
 width = img.size[0]
 return _crop_image_vertically(img, width)

def _square_image ( img ) : width = img . size [ 0 ] return _crop_image_vertically ( img , width )
if the image is taller than it is wide .