         }
     }
 
-    func image(mipLevel: Int) -> UIImage {
+    func image(mipLevel: Int = 0) -> UIImage {
         let p = bytesForMipLevel(mipLevel: mipLevel)
         let q = Int(powf(2, Float(mipLevel)))
         let mipmapedWidth = max(width / q, 1)

        let bounds = CGRect(x: 0, y: 0, width: width, height: height)

        context.clear(bounds)
        if flip == false {
            context.translateBy(x: 0, y: CGFloat(self.height))
            context.scaleBy(x: 1.0, y: -1.0)
        }

            alphaInfo = .premultipliedFirst
        }

        hasAlpha = alphaState(alphaInfo: alphaInfo)

        let colorSpace = CGColorSpaceCreateDeviceRGB()
        let rowBytes = width * bytesPerPixel
