Torture is an excellent deterant and a prime means of extracting information. Just like physical force, it has to be used to enforce justice. Remember, criminals use torture to commit crimes, we are using it to prevent crimes.
Public horrific torture for felons would certainly serve to prevent children getting raped etc.. If you disagree with me you must be a child rapist or something equally evil.