edit media. closes #59