preserve media attribute
Merge pull request #106 from louisremi/keep_media

Preserve media attribute