simplify pen style serialization