Memory-efficient image databases for mobile visual search