PY3 Simplify FoldPanelBar to work with pngs

PY3 was spiting an error for some reason.
less lines also.
Cleaned up trailing whitespace.