major changes to managing state of window
remove old code
highlight current image in thumbnails