switch vector char* to short
image writing compatibility