After im_test.verify() the image is closed (it's a destructive test), you must re-open the image, see:
im_test.verify()
https://pillow.readthedocs.io/en/stable/reference/Image.html#PIL.Image.Image.verify