fix preprocessor with no images