Add #hash changing when clicking images, and reopen the correct image on link