Moves clear user_image dir out of get_segments and into ranked_match