The logic of someone on painkillers is... well, it's not. And usually Ianto's more the one to get Jack to resist temptation, not the other way around, and he can't deny it'd be very fun to draw on John... but probably counterproductive... or maybe it'd teach him not to misbehave?