Sewer smell

I have an occasional sewer smell which can sometimes be overwhelming but non existent at other times. All grey water outlets are connected to a grey water system with functioning traps so it can only be coming from the toilet.

From what I can see, there is a gap to the seal at the back of the toilet. Is this sufficient to be the cause of the smell or is there something else of concern with this installation that I am missing?