Index: trunk/Ohana/src/imregister/detrend/unique.c
===================================================================
--- trunk/Ohana/src/imregister/detrend/unique.c	(revision 2450)
+++ trunk/Ohana/src/imregister/detrend/unique.c	(revision 3593)
@@ -3,16 +3,13 @@
 
 /* define a list of best images which have unique properties */ 
-Match *UniqueSubset (Match *match, int *nmatch) {
+Match *UniqueSubset (DetReg *image, int Nimage, Match *match, int *nmatch) {
 
   int Nsubset, Nunique, Ncrit, NCRIT;
-  int i, j, N, Nmatch, Nimage, found;
+  int i, j, N, Nmatch, found;
   Criteria *crit;
   Match *subset, *unique, *local;
-  DetReg *image;
 
   Nmatch = *nmatch;
   ALLOCATE (local, Match, Nmatch);
-
-  image = get_images (&Nimage);
 
   /* create a set of complete criteria derived from the images */
