public static UploadTask CreateImageUploaderTask(Image image, TaskSettings taskSettings) { UploadTask task = new UploadTask(taskSettings); task.Info.Job = TaskJob.ImageJob; task.Info.DataType = EDataType.Image; task.Info.FileName = TaskHelpers.GetImageFilename(taskSettings, image); task.tempImage = image; return(task); }