you can use img.shape