Changed recognition to save a temp file. Changed image mode conversion to "1" instead of "L"