constant NMIMAGEDIR #20

instead of global var $NMIMAGEDIR