An efficient parts-based near-duplicate and sub-image retrieval system | Synapse