Add the precision that indexed images must be set a colormap after creation, otherwise colors won't be right.