Revert "fixing editing and restoring of media #142"

This reverts commit e50757bb8449a2bcb6386a10a13ecad59ca09735.