The image is opened when in the main window but when i want to open it in the window i have created it does not work and shows a white space where the photo is supposed to b