         }
     }
     
-    class func setInfos(with paramsDict: [String: Any],
+    static func setInfos(with paramsDict: [String: Any],
                         completion: @escaping () -> Void,
                         failure: @escaping (NSError) -> Void) {
         let JSONsession = PwgSession.shared

class ImageUtilities: NSObject {
    
    // MARK: - Piwigo Server Methods
    class func getInfos(forID imageId:Int, inCategoryId categoryId: Int,
                        completion: @escaping (PiwigoImageData) -> Void,
                        failure: @escaping (NSError) -> Void) {
        // Prepare parameters for retrieving image/video infos

        return downsampledImage(from: imageSource, to: pointSize, scale: scale)
    }

    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),
