public TryResult TryOverwrite(Picture picture) { //todo: overwriting is not working var tryResult = TryDelete(picture.FullFileName); if (tryResult.Success.Value) { var bitmap = _bitmapService.ConvertBitmapImageToBitmap(picture.BitmapImage, picture.FileExtension.ToEncoderType()); bitmap.Save(picture.FullFileName); //_fileService.SaveImage(croppedImage, fullFileName, encoderType); } return(tryResult); }