Refactoring serializer to transmit color and width.