I made a small mistake. I shouldn't have changed the value of DisableLogonBackgroundImage to 1. Now everything works