When you use the Add ceiling lights option, sometimes they can be placed in a wall (L-shaped room for example) letting appear the dark shape of the light (a bit like a mask).
With the
formula of polygon center , this bug can be avoided.
It is certainly possible to include this calculation directly into the PhotoRenderer class where ceiling lights are created.