Added an image preloader to allow for the centering of popups