fixed image size overflowing in extractFaceTensors and extractFaces when rectangle overlaps image borders + testcases