Fixed image window not closing.  Now closes properly.