When I use `HeifWriter.Builder(FileDescriptor fd, int width, int height, int inputMode), the begin of the output heic file is truncated and the file is invalid