The Image component does not have a Resize method. You’re calling Resize on the Texture of the image. That’s an obsolete method that changes the resolution of the image.
In order to change the size or position of anything on a Canvas, you want to grab the RectTransform on the same GameObject, and change it’s values. For size, you’d want to change the .sizeDelta value of the RectTransform.
Where are you finding these ancient-ass ways of doing things? GetComponent(typeof(T)) as T; hasn’t been the standard since idk 2015? It works, I guess, but I’d suggest finding a tutorial that wasn’t written while the WiiU was still relevant.