Add and use a directive for bg layer selector
Use the x- prefix in HTML