Learning the Relative Importance of Objects from Tagged Images for Retrieval and Cross-Modal Search