Refactoring selectWallpaperAttribute function into several functions for better readability
Completed refactoring selectWallpaperAttr method