Index: trunk/pstamp/scripts/pstampparse.pl
===================================================================
--- trunk/pstamp/scripts/pstampparse.pl	(revision 20152)
+++ trunk/pstamp/scripts/pstampparse.pl	(revision 20166)
@@ -247,8 +247,8 @@
             }
 
-            if ($option_mask & $PSTAMP_SELECT_MASK) {
+            if (($option_mask & $PSTAMP_SELECT_MASK) &&  $image->{mask} ) {
                 $args .= " -mask $image->{mask}";
             }
-            if ($option_mask & $PSTAMP_SELECT_WEIGHT) {
+            if (($option_mask & $PSTAMP_SELECT_WEIGHT) and $image->{weight} ) {
                 $args .= " -weight $image->{weight}";
             }
