toggle between test mode and raw image capture mode