corrected regexp for identifying header in pbm
supports pgm
supports pgm for dark subtraction
fixxed processing in wavelet space