Port _ImageLayouter.py.
Port _Panel.py.