merged Saumya's code for set/reset wallpaper