Index: /trunk/psLib/src/imageops/psImageStructManip.c
===================================================================
--- /trunk/psLib/src/imageops/psImageStructManip.c	(revision 15491)
+++ /trunk/psLib/src/imageops/psImageStructManip.c	(revision 15492)
@@ -8,6 +8,6 @@
  *  @author Robert DeSonia, MHPCC
  *
- *  @version $Revision: 1.19 $ $Name: not supported by cvs2svn $
- *  @date $Date: 2007-11-05 23:56:33 $
+ *  @version $Revision: 1.20 $ $Name: not supported by cvs2svn $
+ *  @date $Date: 2007-11-08 01:09:48 $
  *
  *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
@@ -161,12 +161,11 @@
     psRegion region = {0, 0, 0, 0};
     region = psRegionForImage (input, region);
-    psImage *result = imageSubset (__FILE__, __LINE__, __func__, output, input,
-                                   region.x0, region.y0, region.x1, region.y1);
+    psImage *result = imageSubset(__FILE__, __LINE__, __func__, output, input,
+                                  region.x0, region.y0, region.x1, region.y1);
     return result;
 }
 
-psImage* psImageCopy(psImage* output,
-                     const psImage* input,
-                     psElemType type)
+psImage* p_psImageCopy(const char *file, unsigned int lineno, const char *func,
+                       psImage* output, const psImage* input, psElemType type)
 {
     psElemType inDatatype;
@@ -203,5 +202,5 @@
     elementSize = PSELEMTYPE_SIZEOF(inDatatype);
 
-    output = psImageRecycle(output, numCols, numRows, type);
+    output = p_psImageRecycle(file, lineno, func, output, numCols, numRows, type);
     P_PSIMAGE_SET_COL0(output, input->col0);
     P_PSIMAGE_SET_ROW0(output, input->row0);
Index: /trunk/psLib/src/imageops/psImageStructManip.h
===================================================================
--- /trunk/psLib/src/imageops/psImageStructManip.h	(revision 15491)
+++ /trunk/psLib/src/imageops/psImageStructManip.h	(revision 15492)
@@ -5,6 +5,6 @@
 *  @author Robert DeSonia, MHPCC
 *
-*  @version $Revision: 1.8 $ $Name: not supported by cvs2svn $
-*  @date $Date: 2007-11-05 23:56:33 $
+*  @version $Revision: 1.9 $ $Name: not supported by cvs2svn $
+*  @date $Date: 2007-11-08 01:09:49 $
 *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
 */
@@ -64,4 +64,5 @@
  *
  */
+#ifdef DOXYGEN
 psImage* psImageCopy(
     psImage* output,                   ///< if not NULL, a psImage that could be recycled.
@@ -69,4 +70,16 @@
     psElemType type                    ///< the desired datatype of the returned copy
 );
+#else // ifdef DOXYGEN
+psImage* p_psImageCopy(
+    const char *file,                   ///< File of caller
+    unsigned int lineno,                ///< Line number of caller
+    const char *func,                   ///< Function name of caller
+    psImage* output,                   ///< if not NULL, a psImage that could be recycled.
+    const psImage* input,              ///< the psImage to copy
+    psElemType type                    ///< the desired datatype of the returned copy
+) PS_ATTR_MALLOC;
+#define psImageCopy(output, input, type) \
+      p_psImageSubset(__FILE__, __LINE__, __func__, output, input, type)
+#endif // ifdef DOXYGEN
 
 /** Trim an image
