Index: trunk/psphot/src/psphotMosaicSubimage.c
===================================================================
--- trunk/psphot/src/psphotMosaicSubimage.c	(revision 14953)
+++ trunk/psphot/src/psphotMosaicSubimage.c	(revision 19869)
@@ -2,5 +2,5 @@
 
 // insert the source image into the outimage at Xo, Yo
-bool psphotMosaicSubimage (psImage *outImage, pmSource *source, int Xo, int Yo, int DX, int DY) {
+bool psphotMosaicSubimage (psImage *outImage, pmSource *source, int Xo, int Yo, int DX, int DY, bool normalize) {
 
     psRegion inRegion, outRegion;
@@ -35,5 +35,9 @@
     for (int iy = 0; iy < newImage->numRows; iy++) {
 	for (int ix = 0; ix < newImage->numCols; ix++) {
-	    newImage->data.F32[iy][ix] = subImage->data.F32[iy][ix] / peak;
+	    if (normalize) {
+		newImage->data.F32[iy][ix] = subImage->data.F32[iy][ix] / peak;
+	    } else {
+		newImage->data.F32[iy][ix] = subImage->data.F32[iy][ix] / peak;
+	    }
 	}
     }
