Added filename parsing and wallpaper check.