         return downsampledImage(from: imageSource, to: pointSize, scale: scale)
     }
 
-    class func downsample(image: UIImage, to pointSize: CGSize, scale: CGFloat) -> UIImage {
+    static func downsample(image: UIImage, to pointSize: CGSize, scale: CGFloat) -> UIImage {
         let imageSourceOptions = [kCGImageSourceShouldCache: false] as CFDictionary
         guard pointSize.equalTo(CGSize.zero) == false,
               let imageData = image.jpegData(compressionQuality: 1.0),

        }
    }
    
    class func delete(_ images:[PiwigoImageData],
                      completion: @escaping () -> Void,
                      failure: @escaping (NSError) -> Void) {
        // Create string containing pipe separated list of image ids

        return downsampledImage(from: imageSource, to: pointSize, scale: scale)
    }
    
    static func downsampledImage(from imageSource:CGImageSource, to pointSize: CGSize, scale: CGFloat) -> UIImage {
        // The default display scale for a trait collection is 0.0 (indicating unspecified).
        // We therefore adopt a scale of 1.0 when the display scale is unspecified.
        let maxDimensionInPixels = max(pointSize.width, pointSize.height) * max(scale, 1.0)
