1.added image load handling;