Semantics-aware image understanding