Symbolic feature detection for image understanding