Getting Errors While Cropping An Image Based On Custom Mask In Python

Getting Errors While Cropping An Image Based On Custom Mask In Python