For proper viewing photos, wait for complete loading the page before clicking on the preview