How does the media library work?