code: private static File createTempFile(Context ctx, String fileName) throws IOException {
          File storageDir = new File(ctx.getFilesDir(), "temp");
          storageDir.mkdir();
          return nonDuplicateFile(storageDir, fileName);
      }
docs: Create a temporary file to use to handle selected images from the picker
  
  @return      the created temporary file
  @throws IOException