Corrected Sauvola Algorithm