Headlamp and flashlight accessories