update media resize directive