But what do you think about the following implementation of the same logic:
Ch3D
11

Me too! In fact this example in my article was something that I found while doing a code review in one of our projects and I suggested exactly the edit that you suggested: that it is way better to make this an extension function of an ImageView. But I decided not to include this in article to demonstrate the point I tried to deliver :) Maybe will extend it with this example a bit later.

Also notice how this extension function feels quite natural while when it was on Context it felt quite ugly and misplaced (at least to me)