One of the things that "innocent until proven guilty" needs to mean is that pre-trial confinement is sufficiently comfortable, safe, and accommodating so as not to be confused for punishment, deterrence, or any other outcome of a judicial proceeding.
Putting pre-trial detainees in the same population as convicted prisoners (ie, county jails) is very strange.