added image loading