Fixed issues with trimmed textures.