[GEOS-6491] Add legend preview in the style edit pages