changed GalleryHasMedia inheritance reference