Hold the light in your weak hand. I'm not being sarcastic, it's a very well studied and proven technique, and has some advantages - particularly that you can shine an unknown noise without also aiming a gun at it, which has both legal and practical benefits when investigating "bump in the night" situations.
I don't know of any add-on rail for the 2nd gen G22. You may do some research and find that 3rd gen G22's often develop reliability problems when their rail is used. One can only infer that an aftermarket attachment on a 2nd gen could be even more problematic.