added image upload support for panes