                         self.isHQImagePrefetched = true
                         
                         self.hidePrefetchHUD()
+                        
+                        self.prefetchNextNextImage()
+                        
+                        
                     }
                     
                     

    }
    
    
    
    // loads the full HQ image in the background
    // regardless of the current browsing direction
    func prefetchNextImage(){
        

        showPrefetchHUD()
        
        // get the next prefetch image
        var prefetchPosition = indexPosition + 1
        
        
        // do we have images at all?
        // and not only one image? otherwise the prefetching is useless
        if(phAssetResult.count > 1){
            // did we reach the end of the list, then switch to the start
            if(prefetchPosition == phAssetResult.count){
                prefetchPosition = 0
            }
    
            let prefetchAsset: PHAsset = getAsset(atIndex: prefetchPosition)
            

            
            // first load the main image synchronously for a quick result
            // and the load the image again asyncly and abort loading when the user swipes etc.
            imageAsyncRequestID =  self.loadImage(asset: prefetchAsset, isSynchronous: false, resultHandler: { imageData, dataUTI, orientation, infoArray in
                // The cell may have been recycled by the time this handler gets called;
                // set the cell's thumbnail image only if it's still showing the same asset.
                
                
                // general information about the loaded asset
                // print("Load information \(infoArray)")
                // HERE WE GET THE IMAGE
                
                
                
                if(infoArray != nil){
                    

                if(imageData == nil){
                    print("missing HQ image data")
                    // loading ended or aborted

                    self.hidePrefetchHUD()
                    return
