final refactor for YUI panel img