Rethinking Image Restoration for Object Detection