fixed error when clicking out of images menu