A fair ranking method for image database retrieval