the two girls have to use every ounce of their charm and smarts to get the photos back , prove theyre not diamond thieves and get themselves married by the end ( lorelei to gus ; dorothy to the private detective , of all people ) .