Detecting high-level and low-level properties in percepts and mental images