void saveImageToTheLocalFile(File file, Uint8List bytes) async { if (debug) print("Saving image to file: ${file.path}"); file.writeAsBytes(bytes, flush: true); }