Allow --self-contained to get content from MediaBag.

Added a parameter to makeSelfContained (API change).