add --image option for test util
possibly support palette loading from png files, maintain int type of palette correctly