Ensure that image shows when not run interactively
Fix display in IPython notebook