serialize graphic attributes