public static void Save(string url, string path, ImageFormat format, Size size) { var image = Take(url, size); using (var stream = new MemoryStream()) { image.Save(stream, format); var bytes = stream.ToArray(); File.WriteAllBytes(path, bytes); } }