ReadImg: fix file header