adding imageloading method