Valid ROI for 2D image

Hello team, I have a problem with loading 2D .jpg image and automatically segmented 2D .png skin lesion mask using AI. Size of the image is (128, 128, 3) and mask is (128, 128, 1) but during extractor.execute I have following error:


What can I do and is using 3D slicer necessary?