Simplified imagen IPython extension which now works with qtconsole.