try catch for mipmaps