fix image viewer test for windows

 Please enter the commit message for your changes. Lines starting
Merge pull request #1436 from swryan/gui

fix image viewer test for windows