EllipsoidFactor: handle ellipsoids that dilate out of the image

Probably better to throw exceptions than pass null values about, so this
null-ing strategy will need revision.