Index: /branches/eam_branches/ipp-20100823/psModules/src/camera/pmFPA_JPEG.c
===================================================================
--- /branches/eam_branches/ipp-20100823/psModules/src/camera/pmFPA_JPEG.c	(revision 29312)
+++ /branches/eam_branches/ipp-20100823/psModules/src/camera/pmFPA_JPEG.c	(revision 29313)
@@ -219,10 +219,14 @@
     }
 
-    psImageJpegColormap *map = psImageJpegColormapSet(NULL, colormapName);
-    if (!map) {
-        map = psImageJpegColormapSet(NULL, "-greyscale");
-    }
-
-    if (!psImageJpeg(map, readout->image, file->filename, min, max)) {
+    psImageJpegOptions *options = psImageJpegOptionsAlloc();
+    psImageJpegColormapSet(options, colormapName);
+
+    // default options are: no flip in X or Y, scale bar on bottom
+    options->min = min;
+    options->max = max;
+
+    // NOTE: we can overlay the location of the stars from the readout by passing a bDrawBuffer to this function
+
+    if (!psImageJpeg(options, readout->image, NULL, file->filename)) {
         psError(PS_ERR_UNKNOWN, false, "Unable to write JPEG image");
         psFree(map);
