Store imagename in tag for gallery on click.