Modified Style class to store PolyStyle and LineStyle in the styleProperties method