Move import and update mask.
Handle the possibility of pyqtgraph not being installed.