Updated to use the new HaskellViewer (with better size control).
Added some optimizations for the raster mode.