GaBoDS: The Garching-Bonn Deep Survey; IV. Methods for the Image reduction of multi-chip Cameras