Fix off-canvas-menu background

How I can set image on the background of off-canvas menu?
I add detect if $off-canvas-bg set as string, then
we have correct CSS.