Fixed bug - was not setting image filename when selecting an image tab.