with Image(filename ='img/image1.jpg') as image:
width = image.width
height = image.height
print(width, height)
image.resize(50, 60)
width = image.width
height = image.height
print(width, height)
image.save(filename='img/resized.jpg')