             
             timePoints.append(time)
         }
-        Regift.createGIFAsynchronouslyForTimePoints(timePoints, fromURL: URL, fileProperties: fileProperties, frameProperties: frameProperties, frameCount: frameCount, progressHandler: progressHandler, completionHandler: completionHandler)
+        Regift.createGIFAsynchronouslyForTimePoints(timePoints, fromURL: URL, fileProperties: fileProperties, frameProperties: frameProperties, maxImageSize: maxImageSize, frameCount: frameCount, progressHandler: progressHandler, completionHandler: completionHandler)
         
     }
     

            let tolerance = CMTimeMakeWithSeconds(Constants.Tolerance, Constants.TimeInterval)
            generator.requestedTimeToleranceBefore = tolerance
            generator.requestedTimeToleranceAfter = tolerance
        
            var generatedImageCount = 0.0
            let generationHandler: AVAssetImageGeneratorCompletionHandler = {(requestedTime: CMTime, image: CGImage?, receivedTime: CMTime, result: AVAssetImageGeneratorResult, err: NSError?) -> Void in

    - parameter progressHandler: The closure to be called with the progress of the conversion. It is called with an argument from 0.0 -> 1.0
    - parameter completionHandler: The closure to be called on completion of the process. If the conversion was successful, an NSURL to the location of the GIF on disk is passed in.
    */
    public class func createGIFAsynchronouslyFromURL(URL: NSURL, withFrameCount frameCount: Int, delayTime: Float, loopCount: Int = 0, maxImageSize: CGSize = CGSizeZero, progressHandler: ProgressCallback?, completionHandler: (NSURL? -> Void)?) {
        let fileProperties = [
            kCGImagePropertyGIFDictionary as String :
                [kCGImagePropertyGIFLoopCount as String: loopCount]
