Separate UpdateImage from the specific code for finding the TEX0; use TextureConverter in PortraitViewer(s)