Context-Dependent Logo Matching and Recognition