Integrating opencv and matplotlib with Tkinter GUI