adding image preloading

added structure for image preloading and also for showing alert messages
showing various stages of the application