Improve wallpaper preference handling