Debugging roiFromPatch