adding 4-color support to ImagePack.