To verify that the coordinates of the rectangles defining the image are not outside the image size:
1. Open the folder which contains the image.
2. Right click on the image.
3. Click Properties.
4. On the Properties window, select the tab Details.
5. Under the Image section check the Dimensions. The rectangle coordinates defining the image must be:
Between 0 and the image width for the x coordinate.
Between 0 and the image height for the y coordinate.