Use smarter checks in "custom-background" callback.