Added a delay to showConfirm() so the image would load before the alert window.