Add ability to close gallery
Fix closing when clicking image chaos item