Add small palette support to writer