fixed camera and camera flash detection