bmp read and write now work well on 8bit

that's enough