Create a new figure for imshow if there is already data
Merge pull request #1281 from blink1073/fix-imshow

Create a new figure for imshow if necessary