add fix for media resizing directive