phash: cleanup preprocessor