Fixed QPixmap warnings (and possible crashes) by removing references to pyplot.