it had been visions of revenge that kept him tossing in his bed as the window lightened and the rain pattered on the sill ; thoughts of fraser confined to a tiny cell of freezing stone , kept naked through the winter nights , fed on slops , stripped and flogged in the courtyard of the prison .