Copy buffer data to a multi-channel image.