Creates a window onclick. Always removes the first window on close and if I click up 2 windows to fast it loads the pictures to the last window instead of both