I feel like he's too hard on himself, calling it "wicked thoughts" when he liked what he saw just because she's sick and he's taking care of her. Look my dude, she's beautiful, and she's naked. Appreciating that sight isn't wicked, it's normal as the man who was attracted to her from the start.
Now, the wicked thoughts were earlier when his horny brain was like "Can I lower her fever with my dick?!" That was was far more applicable to the term than just taking in the sights.