Changed call to media_filter to media_wysiwig_filter and added security check