[tools] try fixing image byte-order