Added checks for incorrect mipmap counts/sizes