Refactor various bit encodings into image reader/writer