Researchers turned beetles into photographers for the sake of science