added image loading function