Light is thoroughly important when taking photos but not when it comes in from all sides. To prevent such things occurring all you need is a lens hood that blocks light coming in from the side. This one here has a matt-finished inner surface which avoids reflections.