IPython extension: Fix for incorrect aspect ratio of PIL images