extended preprocessor & img pattern