added image loading to texture