I'll take that argument on - he was charged by the Swedish Prosecution Authority, extradition was agreed by the UK authorities and he sought sanctuary in the Ecudorian embassy which granted him sanctury.
So which of these imprisoned him? Presumably not Ecuador. The UK for agreeing to extradict him? Sweden? Similarly - what who was the perpetrator of the torture? Ecuador for not offering sufficiently spacious accomodation in the embassy?