Fixed the buildMipMap level which should also be faster now