added image library functionality