Added SVG handling (styling and classes) to media field.