Fixed slow menu rendering issue

Creates dialog background once, instead of every frame