Prison inmates should be treated with some level of human dignity

It is worth remembering that the penalty which the criminal law imposes on someone convicted of a serious offence is a denial of liberty.
The means, obviously, being put behind bars for the crime committed and to ensure the safety of law abiding citizens.