err, it was better just to call plt.show() after plotting images in
matplotlib