refactored LiveWallpaper Class