Query-based Hard-Image Retrieval for Object Detection at Test Time