replace /media/ with {{ MEDIA_URL }} in templates