open in new window, but reuse the same one

Makes the same pictures open in the same browser tabs or opens a new one if we have not opened it yet.