Refactor screen resolution check in wallpaper action