Yes do that on my code in an external function.

this._bounds = bounds; works very well alone but not directly (when you zoom+/zoom-/swipe...). I set the image properties only for visualization before interactions. 

 use that only with the simple CRS, I don't know if it working on another reference.