Load the dimensions before proposing the mipmaps makes more sense