pub fn run_ocr( app: AppHandle, image_id: String, lang: Option<String>, store: State<'_, ImageStore>, ) -> Result<OcrResult, String>