Serialization of multicolour images into FacePainter/KoalaPainter formats