                 self.catalog!.changeToImage(imagesetIndex: Int(self.currentIndex), imageIndexInSet: r)
                 self.reloadData()
                 self.imageSelectionButton.title = imageName
+                self.setImageSelectionButtonWidth()
             })!
             menuItems.append(menuItem)
         }

extension MarsImageViewController: UIPopoverPresentationControllerDelegate {
    
}

    func openDrawer() {
        drawerClosed = false
        drawerButton.image = leftIcon
        addToolbarButtons()
    }
    
    func closeDrawer() {
        drawerClosed = true
        drawerButton.image = rightIcon
        addToolbarButtons()
    }
    
    func adaptivePresentationStyle(for controller: UIPresentationController, traitCollection: UITraitCollection) -> UIModalPresentationStyle {
