implemented PNG/Paeth and TIFF predictor encoding. added PDF::Basic::Util::resample()