Why directly specifying these properties does not work?
img.originX = 0.1;
img.originY = 0.9;
Only setOrigin() method works.
I guess they should be marked read only.
setOrigin()
is required because it also updates the display origin, for rendering.