Bugfix for making the modal view of image hidden.