Close preview on click outside image.