LERGO-268 - switching to directive implementation. removing "audio" or "image" tag according to media type.