take photo and select photo code with menu implemented