implementing show/change image window