some changes in the media class
Merge branch 'master' of https://github.com/getkirby/toolkit