                             .hash: response.forcedString("hash"),
                             .cropData: response.forcedString("crop_data"),
                             .cropHash: response.forcedString("crop_hash"),
-                            .mainPhoto: (mainPhotoConfig != nil ? "1" : "0"),
-                            .cropX: mainPhotoConfig?.cropX,
-                            .cropY: mainPhotoConfig?.cropY,
-                            .cropWidth: mainPhotoConfig?.cropW
+                            .mainPhoto: (mainPhotoCrop != nil ? "1" : "0"),
+                            .cropX: mainPhotoCrop?.x,
+                            .cropY: mainPhotoCrop?.y,
+                            .cropWidth: mainPhotoCrop?.w
                             ])
                     }
                 

            return (userId: nil, groupId: id)
        }
    }
}

// swiftlint:disable next nesting
extension APIScope {
    //Metods to upload Mediafiles. More info - https://vk.com/dev/upload_files
    public struct Upload {
        ///Methods to upload photo
        public struct Photo {
            ///Upload photo to user album
            public static func toAlbum(
                _ media: [Media],
                to target: UploadTarget,

            /// Upload photo for using in market.add or market.edit methods
            public static func toMarket(
                _ media: Media,
                mainPhotoCrop: PhotoCrop?,
                groupId: String
                ) -> Methods.SuccessableFailableProgressableConfigurable {
                
