fixed bug where image pane was showing when there is no image