Port warsow's method of getting image sizes. Remove GetTextureID