Robust image association by recurrent neural subnetworks