No torture, or ill treatment, or unnecessary pain, shall be inflicted upon a prisoner to be executed under the sentence of the law.