I have this code below, it is worked on some images for cropping sub-images for every word in the image contains text, some images raised an issue while cropping them, I cou