Model for managing a media gallery