fix out of memory error when changing wallpaper