Fixed an issue with GIM textures where the dimensions may be incorrect.