Index: branches/pap/ippScripts/scripts/dist_component.pl
===================================================================
--- branches/pap/ippScripts/scripts/dist_component.pl	(revision 23948)
+++ branches/pap/ippScripts/scripts/dist_component.pl	(revision 25027)
@@ -157,6 +157,6 @@
     my $image_type = get_image_type($stage, $file_rule);
 
-    # if we are building a clean bundle skip this rule
-    next if $clean && $image_type;
+    # if this is an image and we are building a clean bundle or if quality is bad skip this rule
+    next if $image_type and ($clean or $poor_quality);
 
     # if magic is required, don't ship jpegs or binned fits images
@@ -189,9 +189,9 @@
         # save the 
         if ($image_type eq 'image') {
-            $image = $path
+            $image = $file_name;
         } elsif ($image_type eq 'mask') {
-            $mask = $path;
+            $mask = $file_name;;
         } elsif ($image_type eq 'variance') {
-            $variance = $path;
+            $variance = $file_name;;
         } else {
             &my_die("invalid image type found: $image_type", $dist_id, $component,
