pictures are loaded when popup opens